<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="base.tools.Constants,java.util.*" errorPage=""%>
<%@ include file="common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>DBFireWall登录</title>
		<link href="<%=Constants.PREFIX_PATH%>/css/login.css" rel="stylesheet"
			type="text/css" />
		<script src="<%=Constants.PREFIX_PATH%>/js/jquery.js"
			type="text/javascript"></script>
		<script src="<%=Constants.PREFIX_PATH%>/js/jquery.validate.js"
			type="text/javascript"></script>
		<script src="<%=Constants.PREFIX_PATH%>/js/jquery.metadata.js"
			type="text/javascript"></script>
		<script type="text/javascript"></script>
		<script type="text/javascript">
	if (top != this) {
		top.location = this.location;
	}
	$(function() {
		$("#username").focus();
		$("#jvForm").validate();
	});
	function checkLogin() {
		$.get("checkLogin.do", {
			t : Math.random(),
			username : encodeURI($("#username").val())
		}, function(data, textStatus) {
			if (textStatus == "success") {
				if (data == "已登录") {
					if (confirm("用户已登录，确定要重新登录吗?")) {
						$("#jvForm").removeAttr("onsubmit");
						$("#jvForm").submit();
					}
				} else {
					$("#jvForm").removeAttr("onsubmit");
					$("#jvForm").submit();
				}
			}
		});
		return false;
	}
</script>
	</head>

	<body style="overflow: hidden;">
		<form id="jvForm"
			action="<%=Constants.PREFIX_PATH%>/LoginAction.do?opt=userLogin"
			method="post" onsubmit="bbslogin()">
			<input type="hidden" name="opt" value="userLogin" />
			<table width="708" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td height="106" class="tab1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td height="210" valign="top" class="tab2">
						<table width="100%" border="0" cellspacing="8" cellpadding="0">
							<tr>
								<td width="70" align="center">
								<font class="otherText">用户名:</font>
								</td>
								<td>
									<input name="username" id="username" type="text" class="id"
										style="width: 160px;" />
								</td>
							</tr>
							<tr>
								<td width="70" align="center">
								<font class="otherText">密&nbsp;&nbsp;码:</font>
								</td>
								<td>
									<input name="password" id="password" type="password" class="id"
										style="width: 160px;" />
								</td>
							</tr>
							<tr>
								<td height="40" align="center">
									&nbsp;
								</td>
								<td height="40" align="left">
									<input type="image"
										src="<%=Constants.PREFIX_PATH%>/images/dx_04.gif" value="提交"
										name="login" />
								</td>
							</tr>
							<tr>
								<td height="40" align="center" colspan="2"
									style="vertical-align: top;">
									<font class="message"><logic:notEmpty name="message">
											<bean:write name='message' />
										</logic:notEmpty>
									</font>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="216" valign="top" class="tab3">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td align="center">
									本系统技术支持由:
									<a href="http://www.schina.cn/">http://www.schina.cn/</a>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
